<?php
if(! defined('TYPO3_MODE')) {
    die ('Access denied.');
}

// include flexform field builder for dynamic flexform content
include_once(t3lib_extMgm::extPath($_EXTKEY).'class.tx_gkeisview_getFlexformFields.php');


// Listview of Artists/Guests
t3lib_div::loadTCA('tt_content');
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY.'_pi1'] = 'layout,select_key,pages';

// add flexform support
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY.'_pi1'] = 'pi_flexform';

t3lib_extMgm::addPlugin(array('LLL:EXT:gk_eisview/locallang_db.xml:tt_content.list_type_pi1', $_EXTKEY.'_pi1', t3lib_extMgm::extRelPath($_EXTKEY).'ext_icon.gif'), 'list_type');

// add flexform xml
t3lib_extMgm::addPiFlexFormValue($_EXTKEY.'_pi1', 'FILE:EXT:'.$_EXTKEY.'/flexform_ds_pi1.xml');


// Featured View
t3lib_div::loadTCA('tt_content');
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY.'_pi2'] = 'layout,select_key,pages';

// add flexform support
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY.'_pi2'] = 'pi_flexform';

t3lib_extMgm::addPlugin(array('LLL:EXT:gk_eisview/locallang_db.xml:tt_content.list_type_pi2', $_EXTKEY.'_pi2', t3lib_extMgm::extRelPath($_EXTKEY).'ext_icon.gif'), 'list_type');

// add flexform xml
t3lib_extMgm::addPiFlexFormValue($_EXTKEY.'_pi2', 'FILE:EXT:'.$_EXTKEY.'/flexform_ds_pi2.xml');


// Listview of Events
t3lib_div::loadTCA('tt_content');
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY.'_pi3'] = 'layout,select_key,pages';

// add flexform support
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY.'_pi3'] = 'pi_flexform';

t3lib_extMgm::addPlugin(array('LLL:EXT:gk_eisview/locallang_db.xml:tt_content.list_type_pi3', $_EXTKEY.'_pi3', t3lib_extMgm::extRelPath($_EXTKEY).'ext_icon.gif'), 'list_type');

// add flexform xml
t3lib_extMgm::addPiFlexFormValue($_EXTKEY.'_pi3', 'FILE:EXT:'.$_EXTKEY.'/flexform_ds_pi3.xml');
?>